import java.net.URL;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Queue;


public interface SpiderInterface extends Remote{

	public void startCrawling() throws RemoteException;
	public Collection<String> getLinks() throws RemoteException;
	public Collection<String> getMails() throws RemoteException;
	public ArrayList<Collection<String>> fetchAndSet(ArrayList<String> visited, Queue<String> queue, ArrayList<String> links, ArrayList<String> mails) throws RemoteException;
	public ArrayList<Collection<String>> fetch() throws RemoteException;
}
